using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace WorkOrder.Models
{

    [Table("用户账户余额表")]
    public class 用户账户余额表
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        [Key]
        [Column("用户ID")]
        [Required]
        [StringLength(50)]
        public string 用户ID { get; set; }

        /// <summary>
        /// 当前余额
        /// </summary>
        [Column("当前余额", TypeName = "decimal(18,2)")]
        public decimal 当前余额 { get; set; } = 0.00m;

        [Column("冻结金额", TypeName = "decimal(18,2)")]
        public decimal 冻结金额 { get; set; } = 0.00m;
        /// <summary>
        /// 最后更新时间
        /// </summary>
        [Column("最后更新时间")]
        public DateTime 最后更新时间 { get; set; } = DateTime.Now;
    }
    
}